home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / Form / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-04-25  |  3.3 KB  |  127 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Frame.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Author:                Laurent Delamare
  7. //
  8. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef FRAME_H
  13. #define FRAME_H
  14.  
  15. #ifndef DEFINES_K
  16. #include "Defines.k"
  17. #endif
  18.  
  19. // ----- Framework Includes -----
  20.  
  21. #ifndef FWFRAME_H
  22. #include "FWFrame.h"
  23. #endif
  24.  
  25. #ifndef FWEVENT_H
  26. #include "FWEvent.h"
  27. #endif
  28.  
  29. #ifndef FWLISTBX_H
  30. #include "FWListBx.h"
  31. #endif
  32.  
  33. // ----- Foundation Layer -----
  34.  
  35. #ifndef FWRECEVR_H
  36. #include "FWRecevr.h"
  37. #endif
  38.  
  39. //==============================================================================
  40. // Forward Declarations
  41. //==============================================================================
  42.  
  43. class CFormPart;
  44. class FW_CMenuEvent;
  45. class FW_CNotification;
  46. class FW_CPushButton;
  47. class FW_CScrollBarScroller;
  48. class FW_CGrowBox;
  49. class FW_CEditView;
  50. class FW_CIdler;
  51. class FW_CViewTabber;
  52. class FW_CMouseEvent;
  53. class FW_CClipboardCommand;
  54.  
  55. //==============================================================================
  56. // CFormFrame
  57. //==============================================================================
  58.  
  59. class CFormFrame : public FW_CFrame, public FW_MReceiver
  60. {
  61. //----------------------------------------------------------------------------------------
  62. //    Initialization/Destruction
  63. //
  64.   public:
  65.       FW_DECLARE_CLASS
  66.     FW_DECLARE_AUTO(CFormFrame)
  67.  
  68.     CFormFrame(Environment* ev, 
  69.                 ODFrame* odFrame, 
  70.                 FW_CPresentation* presentation, 
  71.                 CFormPart* formPart);
  72.  
  73.     virtual ~CFormFrame();
  74.     
  75. //----------------------------------------------------------------------------------------
  76. //    Inherited API
  77. //
  78.     virtual void         Draw(Environment *ev, ODFacet* odFacet, ODShape* invalidShape);
  79.     virtual void         FrameShapeChanged(Environment *ev);
  80.  
  81.     // ----- Views -----
  82.     virtual void        CreateSubViews(Environment* ev);
  83.     virtual void        PostCreateViewFromStream(Environment* ev);
  84.  
  85.     // ----- FW_MReceiver overrides ----- 
  86.     virtual void         HandleNotification(Environment* ev, const FW_CNotification& notification);
  87.  
  88.     // ----- Internalize/Externalize -----
  89. //    virtual void        ExternalizeFrame(Environment* ev, ODStorageUnitView* storageUnitView);
  90. //    virtual void        InternalizeFrame(Environment* ev, ODStorageUnitView* storageUnitView);
  91.     
  92.     // ----- Printing
  93.     virtual FW_CPrintHandler* NewPrintHandler(Environment* ev);
  94.  
  95.     // ----- Text-edit Clipboard
  96.     FW_CClipboardCommand* NewClipboardCommand(Environment* ev, ODCommandID commandID);
  97.  
  98. //----------------------------------------------------------------------------------------
  99. //    New API
  100. //
  101.   public:
  102.     void                 OpenPasswordDialog(Environment* ev);
  103.     void                ModifyPlatformList(Environment* ev, FW_Boolean addItem);
  104.     
  105.     CFormPart*             GetFormPart();
  106.      void                 GetContentRect(Environment* ev, FW_CRect& rect);
  107.  
  108. //----------------------------------------------------------------------------------------
  109. //    Data Members
  110. //
  111.   private:
  112.     CFormPart*             fFormPart;
  113.     FW_CIdler*            fIdler;
  114.     FW_CViewTabber*        fViewTabber;
  115. };
  116.  
  117. //==============================================================================
  118. // CFormFrame Inlines
  119. //==============================================================================
  120.  
  121. inline CFormPart* CFormFrame::GetFormPart()
  122. {
  123.     return fFormPart;
  124. }
  125.  
  126. #endif
  127.